const express = require('express')
const router = express.Router()
const router_handle = require('../../router_handle/users/user')
//导入验证规则
const expressioj = require('@escook/express-joi')
const { reg_login_schema } = require('../../schema/user')
//注册新用户 登录注册共用
router.post('/loginRe', expressioj(reg_login_schema), router_handle.loginRe)
router.post('/logins', expressioj(reg_login_schema), router_handle.logins)
//发送邮注册箱验证
router.post('/sendEmail', router_handle.sendEnail)
module.exports = router